package app;

import javax.xml.bind.annotation.XmlElement;
import javax.xml.bind.annotation.XmlRootElement;

@XmlRootElement(name="room")
public class Room {

    private String roomType;
    private int windows;

    public Room() {
    }

    public Room(String name, int windows) {
        this.roomType = name;
        this.windows = windows;
    }

    public String getName() {
        return roomType;
    }

    @XmlElement(name = "room_type")
    public void setName(String name) {
        this.roomType = name;
    }

    public int getWindows() {
        return windows;
    }

    @XmlElement(name = "windows")
    public void setWindows(int windows) {
        this.windows = windows;
    }

    @Override
    public String toString() {
        return "Room: " + "roomType - " + roomType + ", " + windows + " windows";
    }
}
